"use strict";
const common_vendor = require("../../../common/vendor.js");
if (!Array) {
  const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
  _easycom_up_icon2();
}
const _easycom_up_icon = () => "../../../node-modules/uview-plus/components/u-icon/u-icon.js";
if (!Math) {
  _easycom_up_icon();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "clockTip",
  setup(__props) {
    const isSuccess = common_vendor.ref(-1);
    const timer = common_vendor.ref(null);
    common_vendor.onLoad((options) => {
      if (options) {
        isSuccess.value = +options.status;
        if (+options.status === 1) {
          if (timer)
            clearTimeout(timer);
          timer.value = setTimeout(() => {
            common_vendor.index.navigateTo({
              url: "/subPages/police/onlineAnswer/onlineAnswer"
            });
            clearTimeout(timer);
          }, 2e3);
        }
      }
    });
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_vendor.unref(isSuccess) != -1
      }, common_vendor.unref(isSuccess) != -1 ? common_vendor.e({
        b: common_vendor.unref(isSuccess) === 1
      }, common_vendor.unref(isSuccess) === 1 ? {
        c: common_vendor.p({
          name: "checkmark-circle",
          color: "#6BC839",
          size: "97"
        })
      } : {}, {
        d: common_vendor.unref(isSuccess) === 0
      }, common_vendor.unref(isSuccess) === 0 ? {
        e: common_vendor.p({
          name: "close-circle-fill",
          color: "#E84335",
          size: "97"
        })
      } : {}) : {});
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bff6fb2c"]]);
wx.createPage(MiniProgramPage);
